#include <bits/stdc++.h>

#define ll long long
#define ull unsigned long long
#define uint unsigned int

#define YES cout << "YES" << '\n'
#define NO cout << "NO" << '\n'
#define endl '\n'
const int INF = 1e9;
const int MOD = 998244353;
using namespace std;

/*思考

*/

void is(string S){
    int l=0;
    int r=S.length()-1;
    while(l<=r){
        if(S[l++]!=S[r--]){
            cout<<"N"<<endl;
            return;
        }
    }
    cout<<"Y"<<endl;
}

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    string S;
    cin>>S;
    is(S);
    return 0;
}